//
//  AY_BookDetailModel.h
//  AiYue
//
//  Created by mac on 2023/10/24.
//

#import "AY_BaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ChapterModel : JSONModel
@property (nonatomic,copy) NSString <Optional>* name;
@property (nonatomic,copy) NSString <Optional>* content;
@property (nonatomic,copy) NSString <Optional>* gmtModified; // 最后更新时间
@end

@interface BookModel : JSONModel
@property (nonatomic,copy) NSString <Optional>* bookId;
@property (nonatomic,copy) NSString <Optional>* page; // 正在阅读的page
@property (nonatomic,copy) NSString <Optional>* chapterIndex; // 正在阅读的章节
@property (nonatomic,copy) NSString <Optional>* coverImg;
@property (nonatomic,copy) NSString <Optional>* image;
@property (nonatomic,copy) NSString <Optional>* name;
@property (nonatomic,copy) NSString <Optional>* title;
@property (nonatomic,copy) NSString <Optional>* author;
@property (nonatomic,copy) NSString <Optional>* status; // 状态 1=连载，2=完结，3=停更
@property (nonatomic,copy) NSString <Optional>* categoryName;
@property (nonatomic,copy) NSString <Optional>* wordNum;
@property (nonatomic,copy) NSString <Optional>* score;
@property (nonatomic,copy) NSString <Optional>* hotNum;
@property (nonatomic,copy) NSString <Optional>* info;
@property (nonatomic,copy) NSString <Optional>* userScore;
@property (nonatomic,copy) NSString <Optional>* shelfFlag; // 书架状态 1=在书架，0=不在书架
@property (nonatomic,copy) NSString <Optional>* chapterNum;
@property (nonatomic,copy) ChapterModel <Optional>* firstChapter;
@property (nonatomic,copy) ChapterModel <Optional>* lastChapter;
@property (nonatomic,copy) NSString <Optional>* articleStatus;
@end

@protocol BookModel

@end


@interface AY_BookDetailModel : AY_BaseModel
@property (nonatomic,copy) BookModel <Optional>* data;
@end


@interface AY_CategoaryModel : AY_BaseModel
@property (nonatomic,copy) NSArray <BookModel,Optional> * rows;
@property (nonatomic,copy) NSString <Optional>* total;
@end


NS_ASSUME_NONNULL_END
